package com.zsqx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Course entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "course", schema = "dbo", catalog = "test")
public class Course implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String des;
	private Timestamp createtime;
	private Timestamp modifytime;

	// Constructors

	/** default constructor */
	public Course() {
	}

	/** full constructor */
	public Course(String name, String des, Timestamp createtime,
			Timestamp modifytime) {
		this.name = name;
		this.des = des;
		this.createtime = createtime;
		this.modifytime = modifytime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "des", length = 50)
	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	@Column(name = "createtime", length = 23)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "modifytime", length = 23)
	public Timestamp getModifytime() {
		return this.modifytime;
	}

	public void setModifytime(Timestamp modifytime) {
		this.modifytime = modifytime;
	}

}